# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-zstandard
pkgver=0.18.0
pkgrel=0
pkgdesc="Python bindings to the Zstandard (zstd) compression library"
url="https://github.com/indygreg/python-zstandard"
license="BSD-3-Clause"
# armhf: tests fail (bus error)
# s390x: https://github.com/indygreg/python-zstandard/issues/105
arch="all !armhf !s390x"
depends="python3"
makedepends="python3-dev py3-setuptools py3-cffi"
checkdepends="py3-hypothesis"
source="$pkgname-$pkgver.tar.gz::https://github.com/indygreg/python-zstandard/archive/$pkgver.tar.gz"
builddir="$srcdir/python-zstandard-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --root="$pkgdir" --skip-build
}

sha512sums="
d573da893e3a372143271c7d9dec15cd4e9dd7355d2069e283df8b3feadbf999dddcc0aa37a2831a370526b2b045497f46326dcf13d3680dd8ee624bca1e7666  py3-zstandard-0.18.0.tar.gz
"
